<?php namespace App\Admin\Card\Recharge;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'recharge_record';
    protected $primaryKey = 'id';

    public function card(){
        return $this->belongsTo('App\Admin\Card\Card\Model', 'card_id', 'id');
    }

    public function user(){
        return $this->belongsTo('App\Admin\User\User\Model', 'user_id', 'id');
    }

}